package com.shqcjd.generalplatformprojectclient.ui.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shqcjd.generalplatformprojectclient.R;
import com.shqcjd.generalplatformprojectclient.model.pojo.GuidanceHistoryBean;
import com.shqcjd.generalplatformprojectclient.util.DateUtil;

import java.util.List;

/**
 * 指导历史记录列表
 * Created by sy on 2018/12/17.
 */

public class GuidanceHistoryAdapter extends BaseQuickAdapter<GuidanceHistoryBean,BaseViewHolder>{
    public GuidanceHistoryAdapter(@Nullable List<GuidanceHistoryBean> data) {
        super(R.layout.item_guidance_history, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, GuidanceHistoryBean item) {
        helper.setText(R.id.tv_title,item.comment)
                .setText(R.id.tv_date, DateUtil.getDateToString(item.guideTime,"yyyy-MM-dd HH:mm:ss"));




    }
}
